package com.wanxi.education.config;

import com.github.wxpay.sdk.WXPayConfig;
import org.springframework.stereotype.Component;

import java.io.InputStream;

/**
 * 微信支付参数配置信息
 *
 * @author: 南独酌酒 <211425401@126.com>
 * @date: 2020/10/9 16:14
 */
@Component
public class ConfigUtil implements WXPayConfig {
    /**
     * 微信公众账号
     */
    public static String APPID = "wx9e2b59885e267ed6";
    /**
     * 商户号
     */
    public static String MCH_ID ="1335184901";
    /**
     * API密钥
     */
    public static String API_KEY ="eK8srtNisClaPnoaDyT1OQinJ6ixAA2i";

    @Override
    public String getAppID() {
        return this.APPID;
    }

    @Override
    public String getMchID() {
        return this.MCH_ID;
    }

    @Override
    public String getKey() {
        return this.API_KEY;
    }

    @Override
    public InputStream getCertStream() {
        return null;
    }

    @Override
    public int getHttpConnectTimeoutMs() {
        return 0;
    }

    @Override
    public int getHttpReadTimeoutMs() {
        return 0;
    }
}
